class Scan:
    def __init__(self, filename):
        self._filename = filename
        
    def scan(self):
        fh = open(self._filename, "r")
        while fh:
            i = 0
            for line in fh.readlines():
                i += 1
                print str(i) + ". " + line

scan = Scan("/home/frits/components/com_test/test.php")
scan.scan()
    
